/**
 * 加载动态路由
 */
let routers = []
const routeFiles = import.meta.globEager('@/views/**/*router.js')
routers = Object.keys(routeFiles).reduce((modules, path) => {
      if (routeFiles[path]?.default) {
        modules.push(routeFiles[path]?.default)
      }
      return modules
    },
    []
)
export default routers
